package com.shengqin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shengqin.entity.PlanApplyProject;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface PlanApplyProjectMapper extends BaseMapper<PlanApplyProject> {

    @Update("update t_plan_apply_project A,t_student B \n" +
            "set A.school_id = B.school_id,A.sex=B.sex,A.name=B.name,A.card_no=B.card_no \n" +
            "where A.study_code = B.study_code and A.plan_id = #{planId}")
    long updateStudentInfo(@Param("planId") Integer planId);

}
